home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: Turbo C++ won't write 0Ah to file!?!?
- Date: Tue, 02 Apr 96 12:53:59 GMT
- Organization: none
- Message-ID: <828449639snz@genesis.demon.co.uk>
- References: <4jnpcg$nis@tribune.concentric.net> <4jph9f$fq9@bilbo.nask.org.pl>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4jph9f$fq9@bilbo.nask.org.pl>
- flssoft@blue.maloka.waw.pl
- "FLS" <flssoft@blue.maloka.waw.pl>
- " writes:
-
- >Try to change a file open mode. 0x0A it is '\n' character. If you are
- >writing to a text file, '\n' is converted to "\r\n" string.In the
- >result you will have 0x0D 0x0A characters in the file. Note that the
- >mode in which is opened the file depends on arguments (const char*
- >mode), and if you do not give not 't' neither 'b', the mode depends on
- >_fmode global variable.
-
- In standard C there is no such thing as 't' in the mode string - a stream
- is opened in text mode unless you specify 'b'. Therefore to be conforming
- _fmode must default to text mode on this particular implementation.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-